<pre class="docs-method-signature"><code>element.getPortIndex(portId)</code></pre>

Returns the port index in the array of port items.
